﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.WMS.Entitys;

/// <summary>
/// 出货计划实体.
/// </summary>
[SugarTable("wms_busi_shipping_plan", "出货计划")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiShippingPlanEntity : CLDEntityBase
{
    
    /// <summary>
    /// 出库单别.
    /// </summary>
    [SugarColumn(ColumnName = "F_OutboundTypeNo", ColumnDescription = "出库单别")]
    public string OutboundTypeNo { get; set; }

    /// <summary>
    /// 出货单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OutboundNo", ColumnDescription = "出库单号")]
    public string OutboundNo { get; set; }

    /// <summary>
    /// 出货编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingNo", ColumnDescription = "出货编号")]
    public string ShippingNo { get; set; }

    /// <summary>
    /// 运输方式：air：航空运输、railway：铁路运输、road：公路运输、pipeline：管道运输、water：水路运输.
    /// </summary>
    ///[SugarColumn(ColumnName = "F_TransportType",ColumnDescription = "运输方式：航空运输、铁路运输、公路运输、管道运输、水路运输")]
    ///public string TransportType { get; set; }
    /// <summary>
    /// 订单编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "订单编码")]
    public string OrderNo { get;set;}

    /// <summary>
    /// 客户id.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerId",ColumnDescription = "客户id")]
    public string CustomerId { get; set; }

    /// <summary>
    /// 客户code.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerCode",ColumnDescription = "客户code")]
    public string CustomerCode { get; set; }

    /// <summary>
    /// 客户名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerName",ColumnDescription = "客户名称")]
    public string CustomerName { get; set; }

    /// <summary>
    /// 预计发货日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeliveryDate",ColumnDescription = "预计发货日期")]
    public DateTime? DeliveryDate { get; set; }

    /// <summary>
    /// 状态：0保存 1 已确认 2 下架完成 3 已出库 4 取消出货.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态：0保存 1 已确认 2 下架完成 3 已出库 4 取消出货")]
    public int? Status { get; set; }

    /// <summary>
    /// 取消时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelDate",ColumnDescription = "取消时间")]
    public DateTime? CancelDate { get; set; }

    /// <summary>
    /// 取消原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelReason",ColumnDescription = "取消原因")]
    public string CancelReason { get; set; }

    /// <summary>
    /// 取消人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelUser",ColumnDescription = "取消人")]
    public string CancelUser { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site",ColumnDescription = "Site")]
    public string Site { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark",ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 出货计划单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_ShippingOrderNo", ColumnDescription = "备注")]
    public string ShippingOrderNo { get; set; }
}